}
}
-/**
- * gdk_window_set_offscreen_hooks:
- * @offscreen_window: a offscreen #GdkWindow
- * @hooks: a table of pointers to functions for handling offscreen
- * window coordinates translations
- *
- * Sets the parent-to-offscreen-child and offscreen-child-to-parent coordinate
- * translation functions for offscreen windows.
- *
- * This function is useful for complex widgets employing
- * offscreen windows.
- *
- * Since: 2.16
- */
-void
-gdk_window_set_offscreen_hooks (GdkWindow *offscreen_window,
- const GdkOffscreenChildHooks *hooks)
-{
- GdkWindowObject *private;
-
- g_return_if_fail (GDK_IS_WINDOW (offscreen_window));
- g_return_if_fail (hooks != NULL);
-
- private = (GdkWindowObject *) offscreen_window;
-
- private->offscreen_hooks = hooks;
-}
-
static gboolean
gdk_offscreen_window_queue_antiexpose (GdkWindow *window,
GdkRegion *area)
typedef struct _GdkGeometry GdkGeometry;
typedef struct _GdkWindowAttr GdkWindowAttr;
typedef struct _GdkPointerHooks GdkPointerHooks;
-typedef struct _GdkOffscreenChildHooks GdkOffscreenChildHooks;
typedef struct _GdkWindowRedirect GdkWindowRedirect;
typedef struct _GdkWindowPaint GdkWindowPaint;
gint *win_y);
};
-struct _GdkOffscreenChildHooks
-{
- void (*from_parent) (GdkWindow *offscreen_child,
- gdouble parent_x,
- gdouble parent_y,
- gdouble *child_x,
- gdouble *child_y);
- void (*to_parent) (GdkWindow *offscreen_child,
- gdouble child_x,
- gdouble child_y,
- gdouble *parent_x,
- gdouble *parent_y);
-};
-
typedef struct _GdkWindowObject GdkWindowObject;
typedef struct _GdkWindowObjectClass GdkWindowObjectClass;
guint update_and_descendants_freeze_count;
GdkWindowRedirect *redirect;
- const GdkOffscreenChildHooks *offscreen_hooks;
/* The GdkWindowObject that has the impl, ref:ed if another window.
* This ref is required to keep the wrapper of the impl window alive
gint height);
void gdk_window_remove_redirection (GdkWindow *window);
-void gdk_window_set_offscreen_hooks (GdkWindow *offscreen_window,
- const GdkOffscreenChildHooks *hooks);
-
#ifndef GDK_DISABLE_DEPRECATED
#define GDK_ROOT_PARENT() (gdk_get_default_root_window ())
#define gdk_window_get_size gdk_drawable_get_size